#include<stdio.h>
#include<string.h>
#include<signal.h>
#include<unistd.h>

void handler(int signo)
{
  while(1)
  {
    printf("get a signo : %d\n",signo);
    sleep(1);
  }
}

int main()
{
  struct sigaction act;
  signal(11,handler);
  memset(&act,0,sizeof(act));
  act.sa_handler = handler;
  sigemptyset(&(act.sa_mask));
  sigaddset(&(act.sa_mask),3);
  sigaction(2,&act,NULL);
  while(1)
  {
    printf("hello world!\n");
    sleep(1);
  }

  return 0;
}
